<?php
$tpl_mLateral = new TplLoad();
$str_menuId = $_GET["com"];
$tpl_mLateral->assign("url", $URL."/main_panel.php");

$array_menu = $sys_admin->getMenuArray("com_main", $_SESSION["user"]);
$array_path = $sys_admin->getParentArray($str_menuId);
$array_submenu = $sys_admin->getMenuArray($array_path[1]["FILE_NAME"], $_SESSION["user"], true);


$tpl_mLateral->assign("board", $array_menu);
$tpl_mLateral->assign("sboard", $array_submenu);
$tpl_mLateral->assign("father_name", $array_submenu[0]["FATHER_NAME"]);


if ($bool_callByMain) {
	$tpl_mLateral->assign("callByMain", $bool_callByMain);
}
$tpl_mLateral->display("menu_lateral.tpl");
?>